package com.xie.service;

import com.xie.dao.DogMapper;
import com.xie.pojo.Dog;

import java.util.List;

public class DogServiceImpl implements DogService {

    private DogMapper dogMapper;
    public void setDogMapper(DogMapper dogMapper) {
        this.dogMapper = dogMapper;
    }

    public int addDog(Dog dog) {
        return dogMapper.addDog(dog);
    }

    public List<Dog> allDog() {
        return dogMapper.allDog();
    }
    public int deleteDog(int did) {
        return dogMapper.deleteDog(did);
    }

    public Dog queryDogByText(String dtext) {
        return dogMapper.queryDogByText(dtext);
    }


}
